﻿<%@ Page Title="Tra cứu xe" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="TraCuuXe.aspx.cs" Inherits="Transport.TraCuuXe" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<form runat="server" id="frm">
   <script type="text/javascript">
                $("#MainContent_btn_Search").validate({
                    errorElement: "span", //Thành phần HTML hiện thông báo lỗi
                });
            });
    </script>
    <script type="text/javascript">
        $(function () {
            var txt_Begin = $("#MainContent_txt_Begin").datepicker({ dateFormat: 'dd/mm/yy', changeYear: true, changeMonth: true, yearRange: "-70:+0" });
            var txt_Begin = $("#MainContent_txt_End").datepicker({ dateFormat: 'dd/mm/yy', changeYear: true, changeMonth: true, yearRange: "-70:+0" });
        }); 
    </script>
    <p>
        <b>Ngày bắt đầu:</b>
        <asp:TextBox ID="txt_Begin" runat="server"></asp:TextBox>
        <b>Ngày kết thúc:</b>
        <asp:TextBox ID="txt_End" runat="server"></asp:TextBox>
    </p>
    <b>Số chỗ từ</b>
    <asp:TextBox ID="txt_Nfrom" class="required" runat="server" Width="40px"></asp:TextBox>
    <b>đến</b>
    <asp:TextBox ID="txt_Nto" class="required" runat="server" Width="40px"></asp:TextBox>
    <p>
        <asp:Button ID="btn_Search" runat="server" class="readmore" Text="Tìm" />
    </p>
    <p>
        <b>Lộ trình:</b>
        <asp:DropDownList ID="ddl_LT" runat="server" AutoPostBack="True" DataSourceID="EntityDataSource_LoTrinh"
            DataTextField="ten_lo_trinh" DataValueField="ma_lo_trinh" AppendDataBoundItems="true">
            <asp:ListItem Text="Select All" Value="-1" />
        </asp:DropDownList>
        <asp:EntityDataSource ID="EntityDataSource_LoTrinh" runat="server" ConnectionString="name=transportEntities"
            DefaultContainerName="transportEntities" EnableFlattening="False" EntitySetName="lo_trinh">
        </asp:EntityDataSource>
        <b>Dịch vụ:</b>
        <asp:DropDownList ID="ddl_DV" runat="server" AutoPostBack="True" DataSourceID="EntityDataSource_DV"
            DataTextField="ten_dich_vu" DataValueField="id_dich_vu" AppendDataBoundItems="true">
            <asp:ListItem Text="Select All" Value="-1" />
        </asp:DropDownList>
        <asp:EntityDataSource ID="EntityDataSource_DV" runat="server" ConnectionString="name=transportEntities"
            DefaultContainerName="transportEntities" EnableFlattening="False" EntitySetName="dich_vu"
            EntityTypeFilter="dich_vu">
        </asp:EntityDataSource>
        <b>Miền:</b>
        <asp:DropDownList ID="ddl_Mien" runat="server" AutoPostBack="True" DataSourceID="EntityDataSource_Mien"
            DataTextField="ten_mien" DataValueField="ma_mien" AppendDataBoundItems="true">
            <asp:ListItem Text="Select All" Value="-1" />
        </asp:DropDownList>
        <asp:EntityDataSource ID="EntityDataSource_Mien" runat="server" ConnectionString="name=transportEntities"
            DefaultContainerName="transportEntities" EnableFlattening="False" EntitySetName="miens">
        </asp:EntityDataSource>
    </p>
    <p>
        <b>Thương hiệu:</b>
        <asp:DropDownList ID="ddl_Brand" runat="server" AutoPostBack="True" DataSourceID="EntityDataSource_Brand"
            DataTextField="ten_thuong_hieu" DataValueField="ma_thuong_hieu" AppendDataBoundItems="true">
            <asp:ListItem Text="Select All" Value="-1" />
        </asp:DropDownList>
        <asp:EntityDataSource ID="EntityDataSource_Brand" runat="server" ConnectionString="name=transportEntities"
            DefaultContainerName="transportEntities" EnableFlattening="False" EntitySetName="thuong_hieu"
            EntityTypeFilter="thuong_hieu">
        </asp:EntityDataSource>
        <b>Tình trạng xe:</b>
        <asp:DropDownList ID="ddl_Status" runat="server" AutoPostBack="True" DataSourceID="EntityDataSource_Status"
            DataTextField="tinh_trang" DataValueField="ma_tinh_trang" AppendDataBoundItems="true">
            <asp:ListItem Text="Select All" Value="-1" />
        </asp:DropDownList>
        <asp:EntityDataSource ID="EntityDataSource_Status" runat="server" ConnectionString="name=transportEntities"
            DefaultContainerName="transportEntities" EnableFlattening="False" EntitySetName="tinh_trang_xe"
            EntityTypeFilter="tinh_trang_xe">
        </asp:EntityDataSource>
    </p>
    <p>
        <b>A - BẢNG GIÁ THEO LỘ TRÌNH</b>
    </p>
    <div style="zoom: 1; overflow: auto;">
        <asp:GridView ID="GridView_LT" runat="server" AutoGenerateColumns="True"
            CellPadding="4" CellSpacing="4" ForeColor="#DBDEE1" GridLines="None">
            <AlternatingRowStyle BackColor="White" />
            <Columns>
            </Columns>
            <FooterStyle BackColor="#DBDEE1" Font-Bold="True" ForeColor="Black" />
            <HeaderStyle BackColor="#DBDEE1" Font-Bold="True" ForeColor="Black" />
            <PagerStyle BackColor="#FFCC66" ForeColor="#000" HorizontalAlign="Center" />
            <RowStyle BackColor="#F1F1F1" ForeColor="#000" />
            <SelectedRowStyle BackColor="#F1F1F1" Font-Bold="True" ForeColor="Navy" />
            <SortedAscendingCellStyle BackColor="#FDF5AC" />
            <SortedAscendingHeaderStyle BackColor="#4D0000" />
            <SortedDescendingCellStyle BackColor="#F1F1F1" />
            <SortedDescendingHeaderStyle BackColor="#820000" />
        </asp:GridView>
    </div>
    <p>
    </p>
    <p>
        <b>B - BẢNG GIÁ THEO NGÀY</b>
    </p>
    <div style="zoom: 1; overflow: auto;">
        <asp:GridView ID="GridView_N" runat="server" AutoGenerateColumns="True"
            CellPadding="4" ForeColor="#DBDEE1" CellSpacing="4" GridLines="None">
            <AlternatingRowStyle BackColor="White" />
            <Columns>
            </Columns>
            <FooterStyle BackColor="#DBDEE1" Font-Bold="True" ForeColor="Black" />
            <HeaderStyle BackColor="#DBDEE1" Font-Bold="True" ForeColor="Black" />
            <PagerStyle BackColor="#F1F1F1" ForeColor="#000" HorizontalAlign="Center" />
            <RowStyle BackColor="#F1F1F1" ForeColor="#000" />
            <SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="Navy" />
            <SortedAscendingCellStyle BackColor="#FDF5AC" />
            <SortedAscendingHeaderStyle BackColor="#4D0000" />
            <SortedDescendingCellStyle BackColor="#F1F1F1" />
            <SortedDescendingHeaderStyle BackColor="#820000" />
        </asp:GridView>
    </div>
    </form>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentFooter" runat="server">
</asp:Content>
